package com.moon.mqlistener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WnConsumer {
    @Value("${server.port}")
    private int port;

    @RabbitListener(queues = "wnQA")
    public void onMessage(String info) {

        System.out.println("WnConsumer-" + port + info);
    }
}
